<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .left  {background-color: #ccc;width: 200px;height:40px;float: left;}
         .right{background-color: red;overflow: hidden;}
    </style>
</head>
<body>
    <div>
        <div class="left">left</div>
        <div class="right"> r r ri gh ri rig ri ri right a x x n nx xxxght a x x n nx xxxght a x x n nx xxxht a x x n nx xxxg ht a x x n nx xxx t a x x n nx xxxi ri ri rig ri rig right a x x n nx xxxht a x x n nx xxxght a x x n nx xxxht a x x n nx xxxght a x x n nx xxxght a x x n nx xxxght a x x n nx xxxight a x x n nx xxxr right a x x n nx xxxi right a x x n nx xxxg right a x x n nx xxxht a r right a x x n nx xxxi right a x x n nx xxxght a x x n nx xxx x x n nx xxx </div>
    </div>
</body>
</html>